Cleaned up conversion of various attributes