Export all functions from the BLAS module and remove repeated code.

This one fixes #7985 and some more.