Move hostname mixin in the correct class.