Merged control and menu condition code

The code has been merged, but transference is not fully functioning. Some cleanup is still required.
Good catch. I didn't add a comment because the function name was relatively good at describing what the function does, but for consistency we should still add a comment.