Circuit spec: refactor a bit and make RuboCop happier