Update module loader boilerplate to share dependency list.