Move base initialization functions to their own module