Refactor component source gates.