[dynamo] clean code