Factor out the password and totp panes into seperate modules.