Separate out rake task methods to avoid double altering hocr files on heroku