Decouple server logic from the lens