diff --git a/bins/inbreeding/load.nu b/bins/inbreeding/load.nu
index c7b865e9dc6cd95e77db75f8e5819a7890839a6a..3c2c5cd77f83f1ce589e618bf40025d5e966e84b 100644
--- a/bins/inbreeding/load.nu
+++ b/bins/inbreeding/load.nu
@@ -1,10 +1,7 @@
 use consts.nu
+use path.nu [ "remove-cache-prefix" ]
 use ../../.nushell error "error throw"
 
-def remove-cache-prefix []: path -> string {
-    str replace $"($consts.CACHE)(char path_sep)" ''
-}
-
 # return experiment names following `$ARG_EXPERIMENT_FORMAT`
 def get-experiments []: nothing -> list<string> {
     $consts.CACHE
diff --git a/bins/inbreeding/path.nu b/bins/inbreeding/path.nu
new file mode 100644
index 0000000000000000000000000000000000000000..4614db12ff3e211215ad1d5cebc21ba0a4ac2ae4
--- /dev/null
+++ b/bins/inbreeding/path.nu
@@ -0,0 +1,5 @@
+use consts.nu
+
+export def remove-cache-prefix []: path -> string {
+    str replace $"($consts.CACHE)(char path_sep)" ''
+}