Some small refactoring around d-lang.cc.