Transform loaders into parsers and move file related ops to config class