Added ability to remove code types from template