Rpm propagation script refactorings