Moved parsing of each card attribute to its own function.