Split/auto publish

LMS-11017 https://openedx.atlassian.net/browse/LMS-11017
consider adding the `for_branch` to this line instead of all the lines below for `problem_location`.