Add core helper to create flag getter