Moved list of restricted properties and filter method out of `setMetadata` method, but kept the array. Reason is that this way the actual list of restricted properties is easier to read (not cluttered with `:true,` statements, and there is only one line which uses it, so there the less nice reading should be okay.
Done.