Parse metadata if it hasn't been parsed yet before accessing it
Remove unnecessary variable assignment; return metadata directly without looking into attribute model