Taking out the photoswitch code