Abstracts the DomainController to allow domains to be passed as arguments to other controllers.