Unify object writing