Changes to security factory method

- Now extends Symfony abstract factory and implements
  protected abstract methods from that