Slightly improve readability of button insertion logic.
More readability stuff.