Refactor S3 object metadata parsing for possible future expansion.