RHTS support: regularize order of functions and comments

This is a preparatory patch. No logic changes.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>