Move some BlinkDB-specific things to separate files and packages.