Separate the action handling of ln_s into a new method to lower complexity