Abstracted PhpSpecAware code into trait