Convert intermediate master to brace layer

is there a script for such task available?

Not yet.