Move common commands into own module.