Revert "Fix build profile support"

This reverts commit f00191ab8748daf065e65f2ff3d8f3042007301b.
Revert "Very basic buildProfile support"

This reverts commit 6ce463518e1d49ae027dca3b0436c80429d98e54.