Simplify amd boilerplate