Move rotate and translate into their own module.