Define split layer (merge trick)

Originally authored by Jeff Donahue, but this commit was needed for
historical reasons.