track: Use helper function to shorten code