refactor to split up Release into Repository and Release