Split into a command and a library.