[DCOM-96] Move public method to top, make all generator methods private.