Refactor #3936: Refactor cc.loader to make loader plugin used easier.