Refactoring Warden login rituals into module