Refactor RealtimeLoader.