removes "pattern" from command, singleton, and observer