This is an implementation from elsewhere in the codebase, not going to change what works elsewhere ... I don't like code like that either, but it works TM ...