Refactoring in progress of quotas.php file.