Refactor intra-method opts in separate file.