refactoring lessphp