1. A method, comprising: identifying common operations in two or more environment-specific entities; replacing the common operations in the two or more environment-specific entities with an operation that causes transfer to a common entity; and executing the common entity whenever the common operations in the two or more environment-specific entities are to be executed, wherein the common entity includes the common operations and is stored in a system management mode (SMM) memory.