Moves next to an outside function

This makes patching cleaner