Don't manipulate symbols if unused declarations are disabled

I'm still under impression that our symbol manipulation may cause issues in certain situations. This PR makes sure that symbol manipulation isn't executed if unused declaration option is disabled.