I often degrease chains on the bike with WD40. A section at a time with a rag cupped under the section I'm working on. Never do I get solvent in the BB or hubs or on anything else. Not that a little would really hurt them though.
But yeah, totally neglected chains must be removed for cleaning... or just replaced.