Since history repeats itself it can be a mix of both
With these sentences you just move the noun that is used with 'by'
and make it the subject of the sentence. the Old subject then becomes the direct object. I'll do the first one...
a. Janice made the cake for Jeff's birthday.