Allow using a callback to generate and return an attribute's default value.