refactor location of class definition of S3MediaAsset