Best practices in data transformation