generate:form, generate:page - Reduce code duplication
generate:form, generate:page - Cleanup variable name; simplify function contract