[staff-cli] poured everything out into independent files