platform: simplify object allocation