Refactor atm into separate make() and write() calls.