Remove superfluous position variables and functions