Generalize move functions.