Abstract user setup into more functions

See #98