Remove useless modules from core spec_helper. [Fixes #3411]