refactoring to separate from qos-models