Removes useless rules from nginx image