Move to user factory
Application factory