Removed RefactGhc monad from various functions