Refactor DLibrary#element