utils: move RING account detection to utils

This code might be re-used elsewhere.

Issue: #80846
Change-Id: I5dd8036896ce94efca02514a06f3257ce20a7768
3 files changed