Reduce complexity of beanstalk#put