If you changed it to follow the approach I took in my PR(https://github.com/neo/middleman-gh-pages/pull/13), you wouldn't need to redefine constants because you wouldn't need them to be constants.