Data factory and loading spinner