Put common ROACH functions into a single module.