Tidy up function calls using the prefered method of loading resources via config.php