Extract receiver code into separate class