Remove unnecessary trailing commas