I realized that you should not continue doing something for so long that you no longer take pleasure in it.

Is "it" needed?

Thanks.