Refactor StaticSubscriberFactory.create

A bit of refactoring.

Avoid `eval` when creating static subscribers classes. Use anonymous classes instead. :green_heart: