Refactoring of JP id and ring selection steps