Separate code into 'base' and 'operations'