Before implementing the lazy barrel feature, I need to improve the module loader's related code logic to make it clearer and more maintainable.