extracted out functions for dead steps into a dead steps helper. refactored accordingly. Still require tests to be moved to a dead_steps_spec file from cli_spec.