Define the track types instead of referencing them as integer values
(hashtag:  ancient code cleanup)