Move bash functions into their own files.