Refactor send/read operations into shared static class