Was for debug
Extract logic for choosing which type of nginx config rule to create
Make current config selection logic explicit

Including tests for same.