Simplify the generated bedrock code.