Extract specfile manipulation into a wrapper library / class