Reorganize Flask+Persona-related code