Refactor Client#receive code using callback style