Remove superfluous code
Add mocking of numpy for Sphinx build with minimal dependencies