extracted toggle_access method to ToggleAccess module in /app/lib