[skin] clean up code slightly.