Create an afs.afs module for common functions, like error handling.