Move some object flags to kind flags