Extracted transitions array and its utils to new files.