A method of preparing a surgical system for surgery includes inserting a battery assembly into an inner chamber of an aseptic bag through an open end of the aseptic bag, positioning a portion of a housing of a surgical instrument through the open end of the aseptic bag, coupling the battery assembly to the surgical instrument, and sealing the open end of the aseptic bag. The battery assembly is coupled to the surgical instrument while the battery assembly is within the inner chamber of the aseptic bag. When the open end of the aseptic bag is sealed the battery assembly is encapsulated within the inner chamber of the aseptic bag. A generator of the surgical system may additionally or alternatively be encapsulated similarly.