Split up operations.cpp into several files for groups of (mostly) related operations.