Remove duplicated redundant button loops.