Identical blocks of code found in 2 locations. Consider refactoring. https://codeclimate.com/github/Smcculle/gfspython/zchunkserver.py#issue_5ab4917edd0fb20001000056