Removing redundant mahonia