Fix drawing ActionBar slots. Move duplicate code to Utils.