Migrates the first parameter of a function to the method receiver position (and vice versa), and updates the references.