Move StackUtil to api package for not causing errors.