Separate account logic from app logic to keep my sanity.