Refactored build helper methods into ./lib/build-tools