Removes unnecessary conditionals