Moving require_once to extending classes