Remove duplicate function in php-asmanager