This reverts commit 97d4f7e074, which appears to be incomplete: CHECK_BUTTON is not defined anywhere.
97d4f7e074