Change Registration-Type header value.
Remove redundant line of code.