Rework code to be less tacky, fill the NBT from the horse to begin with.
Remove unused imports.