[CLEANUP] #5099 Move the require calls to inside methods

According to the PSR-1 standard, we should either declare a class or
execute logic with side effects, but not do both in the same file.

So we need to move the require_once from before the class declaration
to inside a method.

Change-Id: Ia57310a94556ebe3c50f14cc1593fad821419756
Reviewed-on: http://review.typo3.org/32480
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>