[core] Remove getLayoutStart()/getLayoutEnd() from public API