Centralize adding of objects in editor