Move indy-specific logic out of Helpers; it is accessed from Ruby.