Refactoring build macros.