First pass at splitting all the autoheal stuff out into a separate module.