Refactoring: daemonize moved to own method