t6300: avoid hard-coding object sizes