Simplify MethodDefinitionFactory by removing PageDefinitionFactory dependency