Change variable name to be more descriptive

When generating the extended `remove` and `empty` functions in the data
module, use `methodName` instead of `fn` for the variable referencing
the names.