During migration, the original fix was partially applied—`else` clause assigning `b_method` was unintentionally omitted. This commit restores the full logic as intended by the original author.
During migration, the original fix was partially applied—`else` clause assigning `b_method` was unintentionally omitted. This commit restores the full logic as intended by the original author.