Refactor dynamic loading by Application into a separate Loader class.