Refactor

seperate potential reusable code to base.ais.php