Move some common functions into separate files