:lipstick: Refactor startup function generation