Moving request handling logic into new PinService class