Move WebApplication onto the separate class