Removing reduntant directives