Refactor sliceable_switch...