Pulled out actions into separate file, marked side-effecting functions with a bang