Clean up the logic for the edit modal's title