Functions to change the locations of various module elements.
It is sometimes useful to move module elements to some new location, e.g., when we are inlining elements from one module into another. These are just some utilities to perform such relocations.