Move less-important API functions into helpers.