[linker] Allow some useful methods to be reused elsewhere