refact(module processing): group components by type

This will be useful for simplifying the navigation code in pages-data
processor