Implement createSubfunctionDefinition.