Code cleanup, mainly in Abstract AI node