This can be removed with https://github.com/owncloud/core/issues/3272