Removes unnecessary directive.