Moves CLI class into core module.