Remove unused attributes in hash that passed to template