Miscellaneous helper functions for mlr3.