A generic decorator for Observable objects.