Refactor build button to honor security policy.