Move functions which are used only in one place to become local
functions.