Given an object of { module: dependenciesArray }
it filters out modules that contain the world "docs/"
and that are not components (i.e. they don't start with "components/").
It also removes the "components/" prefix from the modules name.

@param {object} modulesWithDependences An object of modules - dipendencies pairs
@returns {object} A reduced set of modules.
function reduceComponentsUsageStats( modulesWithDependences ) {
	return Object.keys( modulesWithDependences )
		.filter(
			moduleName =>
				moduleName.indexOf( 'components/' ) === 0 && moduleName.indexOf( '/docs' ) === -1
		)
		.reduce( ( target, moduleName ) => {
			const name = moduleName.replace( 'components/', '' );
			target[ name ] = modulesWithDependences[ moduleName ];
			return target;
		}, {} );
}