Refactored asp.net Identity code