Resolves todo in PagesFunctionTemplatePlugin