Fix a typo of remove_priorities
Remove unused priorities and use self.rp.get() to judge
Move status_get_priority to inline lambda