[imp] use constants to improve readability

I think moving stability to constants will improve readability, save lines of code and allow us to control the minimum stability value from a single constant.