You should not think of structures in that way. Although words can be added or removed to create a different structure with the same meaning, nothing has been omitted from the original. In this case, prepositional phases carrying a similar meaning could be built using 'by' or 'in', ir a subordinate clause could be built with 'when', a pronoun subject and an auxiliary verb.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.