Zaslat SMS: The formation of subdwarf B stars