Move cambecc functions into different files