Extract constant for id and pattern of select box id