Refactored Mutton context initialization.