Refactor AMD config