Refactor to remove unneeded variable assignment

Deleting the bucket, so don't need to assign it to `bucket`