This function is only used in one place in one file, no point exposing it in internal header currently...