refactor a bit, no functional changes
refactor a bit, no functional changes

JacksonIsaac/libsolv,JacksonIsaac/libsolv,jsilhan/libsolv,JacksonIsaac/libsolv,jsilhan/libsolv,jsilhan/libsolv,JacksonIsaac/libsolv,jsilhan/libsolv,JacksonIsaac/libsolv,jsilhan/libsolv,jsilhan/libsolv