Refactors admin module.