Remove duplicate code for reading changelogs