Move $available_kinds to a static variable