Feature destruction using methods of if statements instead of lambda functions (ctors became too slow)