refactor transform flags in object classes