Simplify the code for saving changes to genres.