Removed functional code from trait to service, now supporting PHP 5.3