Prevent creating new functions

Only track this for `method` and `sub` messages.