Move plugin register and dependency to selectable. Closes #1674