Split modules by type