refactoring: delete layer table