Refactor StaticSubscriberFactory.create

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