Refactor all basic gates to match ComponentBase changes and tests to match.